{extend name="public:base" /}
{block name="breadcrumbs"}
<div class="breadcrumbs" id="breadcrumbs">
						<ul class="breadcrumb">
							<li>
								<i class="icon-home home-icon"></i>
								<a href="{:url('Index/index')}">首页</a>
							</li>
							<li class="active">管理员管理</li>
						</ul><!-- .breadcrumb -->
					</div>
{/block}					
{block name="content"}
<div class="page-content">
	<div class="page-header">
		<h1>
			当前操作
			<small>
				<i class="icon-double-angle-right"></i>
				添加管理员
			</small>
		</h1>
	</div>
	<div class="row">
		<div class="col-xs-12">
			<form class="form-horizontal"   id="useradd">
			<input type="hidden" name="id" value="">			
				<div class="form-group">
					<label for="sitename" class="col-sm-3 control-label no-padding-right">所属用户组： </label>
					<div class="col-sm-9">
						<select name="group_id" class="col-xs-10 col-sm-5">							
							{volist name="list" id="vo"}
							<option value="{$vo.id}">{$vo.title}</option>
							{/volist}
						</select>						
					</div>
				</div>				
				<div class="form-group">
					<label for="username" class="col-sm-3 control-label no-padding-right">登录用户名： </label>
					<div class="col-sm-9">
						<input type="text" name="username" class="col-xs-10 col-sm-5"  value="">
						<span class="lbl">*用户名必须是以字母开头，数字、符号组合</span>
					</div>
				</div>
				
				<div class="form-group">
					<label for="password" class="col-sm-3 control-label no-padding-right"> 登录密码： </label>
					<div class="col-sm-9">
						<input type="text" name="password" class="col-xs-10 col-sm-5"  value="">
					</div>
				</div>
				
				<div class="form-group">
					<label for="email" class="col-sm-3 control-label no-padding-right">用户邮箱： </label>
					<div class="col-sm-6">
						<input type="text" name="email" class="col-xs-10 col-sm-5"  value="">
					</div>
				</div>
				
				<div class="form-group">
					<label for="tel" class="col-sm-3 control-label no-padding-right">用户电话： </label>
					<div class="col-sm-6">
						<input type="text" name="tel" class="col-xs-10 col-sm-5"  value="">
					</div>
				</div>
				
				<div class="form-group">
					<label for="qq" class="col-sm-3 control-label no-padding-right">用户QQ： </label>
					<div class="col-sm-6">
						<input type="text" name="qq" class="col-xs-10 col-sm-5"  value="">
					</div>
				</div>
				
				<div class="form-group">
					<label for="truename" class="col-sm-3 control-label no-padding-right">真实姓名： </label>
					<div class="col-sm-6">
						<input type="text" name="truename" class="col-xs-10 col-sm-5"  value="">
					</div>
				</div>
				
				<div class="form-group">
					<label for="likename" class="col-sm-3 control-label no-padding-right">通用网名： </label>
					<div class="col-sm-6">
						<input type="text" name="likename" class="col-xs-10 col-sm-5"  value="">
					</div>
				</div>
				
				<div class="form-group">
					<label for="status" class="col-sm-3 control-label no-padding-right">是否审核： </label>
					<div class="col-sm-9">					
						<label><input name="status" class="ace" type="radio" value="1" checked="checked"><span class="lbl">是</span></label>
						<label><input name="status" class="ace" type="radio" value="0"><span class="lbl">否</span></label>
					</div>
				</div>
				</form>	
				<div class="clearfix">
					<div class="col-md-offset-3 col-md-9">
						<button class="btn btn-info" id="send">
							<i class="ace-icon fa fa-check bigger-110"></i>
							保存
						</button>		
						
					</div>
				</div>				
				
			
		</div>
	</div>
</div>
{/block}
{block name="script"}
	<script type="text/javascript">		
			$('#send').click(function(){				
				$.post(
					"{:url('User/add')}",
					$("#useradd").serializeArray(),
					function(d){
						if(d.status){
							layer.msg(d.msg, {time: 1000, icon:6},function(){
								window.location.href="{:url('User/index')}";	
							});		
						}else{
							layer.msg(d.msg, {time: 1000, icon:6});	
						}
					}
				);
			});
			</script>
{/block}